/**
 * Copyright (C) 2011 PROCESSBASE Ltd.
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GPL as published by the Free Software Foundation version 3 of the License.
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License along with this
 * program; if not, see <http://www.gnu.org/licenses/>.
 */
package org.processbase.touchprocess.ui.details;

import com.vaadin.addon.touchkit.ui.Popover;
import com.vaadin.addon.touchkit.ui.VerticalComponentGroup;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;

/**
 *
 * @author marat
 */
public class AboutPopover extends Popover {

    private VerticalLayout layout = null;
    private VerticalComponentGroup vcg = null;

    public void initUI() {
        layout = new VerticalLayout();
        layout.setMargin(false);
        vcg = new VerticalComponentGroup();
        vcg.setSizeFull();

        Label title = new Label("<b>TouchProcess 1.0 Preview</b>", Label.CONTENT_XHTML);
        VerticalLayout vl = new VerticalLayout();
        vl.setMargin(true);
        vl.addComponent(title);
        vcg.addComponent(vl);
        
        Label text = new Label("User Interface for Bonita Open Solution designed for using on touch devices like Android-based tablets or iPad ", Label.CONTENT_XHTML);
        VerticalLayout v2 = new VerticalLayout();
        v2.setMargin(true);
        v2.addComponent(text);
        vcg.addComponent(v2);
        
        Label developer = new Label("<b>PROCESSBASE © 2011</b>", Label.CONTENT_XHTML);
        VerticalLayout v3 = new VerticalLayout();
        v3.setMargin(true);
        v3.addComponent(developer);
        vcg.addComponent(v3);

        layout.addComponent(vcg);
        setWidth("300px");
        setClosable(true);
        setContent(layout);
        layout.setSpacing(true);
    }
}
